﻿using MRSite.AutoMapper.Attributes;
using MRSite.Entity;
using ProtoBuf;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MRSite.EntityDto
{
    [AutoMapBoth(typeof(ServiceOrders))]
    [ProtoContract]
    public class ServiceOrdersDto
    {
        [ProtoMember(1)]
        public int id { get; set; }

        [ProtoMember(2)]
        public String order_no { get; set; }

        [ProtoMember(3)]
        public String trade_no { get; set; }

        [ProtoMember(4)]
        public int user_id { get; set; }

        [ProtoMember(5)]
        public String user_name { get; set; }

        [ProtoMember(6)]
        public int payment_id { get; set; }

        [ProtoMember(7)]
        public Decimal payment_fee { get; set; }

        [ProtoMember(8)]
        public int payment_status { get; set; }

        [ProtoMember(9)]
        public DateTime? payment_time { get; set; }

        [ProtoMember(10)]
        public String paymethod { get; set; }

        [ProtoMember(11)]
        public String mobile { get; set; }

        [ProtoMember(12)]
        public String message { get; set; }

        [ProtoMember(13)]
        public String remark { get; set; }

        [ProtoMember(14)]
        public Decimal payable_amount { get; set; }

        [ProtoMember(15)]
        public Decimal real_amount { get; set; }

        [ProtoMember(16)]
        public Decimal order_amount { get; set; }

        [ProtoMember(17)]
        public int status { get; set; }

        [ProtoMember(18)]
        public DateTime add_time { get; set; }

        [ProtoMember(19)]
        public int ordertype { get; set; }

        [ProtoMember(20)]
        public int service_id { get; set; }

        [ProtoMember(21)]
        public int product_id { get; set; }

        [ProtoMember(22)]
        public Decimal price { get; set; }

        [ProtoMember(23)]
        public int quantity { get; set; }

        [ProtoMember(24)]
        public string title { get; set; }

        [ProtoMember(25)]
        public int year { get; set; }

        [ProtoMember(26)]
        public decimal score { get; set; }
    }
}
